how to convert binary number into decimal number in C